package cn.ant0n.cpm;

public class Consumer extends Thread {

    private Resource resource;


    public Consumer(Resource resource) {
        this.resource = resource;
    }

    @Override
    public void run() {
        while (true){
            resource.remove();
        }
    }
}
